package com.zmx.b2c.order.dto.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zmx.b2c.order.dto.B2COrderDto;
import com.zmx.b2c.order.dto.B2COrderItemDto;
import com.zmx.b2c.order.dto.params.ProductOrderShowDTO;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ToString
public class OrderDetailResultDTO implements Serializable {

    private static final long serialVersionUID = 1988224202675919541L;

    private B2COrderDto b2COrderDto;

    private List<B2COrderItemDto> orderItemDTOs;

    private List<ProductOrderShowDTO> productDTOs;

    private BigDecimal paymentAmount;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //入参
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") //出参
    private Date paymentDate;

    private String orderShowMessage;

    private Boolean isPayment;
}
